package com.anjubao.parking.municipal.parkinglot.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor//无参构造
@AllArgsConstructor//全参构造
@ApiModel(value = "ParkingLotHeartbeatForm",description = "接收停车场心跳信息")
@ToString
public class ParkingLotHeartbeatForm  {

	@NotBlank
	@ApiModelProperty(value = "车场编号,parkingLotCode为云端返回的32位记录Id，具有全局唯一性")
	private String parkingLotCode;


	@NotNull
	@ApiModelProperty(value = "车位数")
	private Integer totalSlots;


	@NotNull
	@ApiModelProperty(value = "剩余车位数")
	private Integer remainTotalSlots;




}
